import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/screen'
  },
  {
    path: '/screen',
    name: 'ScreenPage',
    component: () => import('../views/ScreenPage.vue')
  },
  {
    path: '/sellerpage',
    name: 'sellerpage',
    component: () => import('../views/SellerPage.vue')
  },
  {
    path: '/trendpage',
    name: 'Trendpage',
    component: () => import('../views/TrendPage.vue')
  },
  {
    path: '/map',
    name: 'map',
    component: () => import('../views/MapPage.vue')
  },
  {
    path: '/rank',
    name: 'rank',
    component: () => import('../views/RankPage.vue')
  },
  {
    path: '/hot',
    name: 'Hot',
    component: () => import('../views/Hotpage.vue')
  },
  {
    path: '/stock',
    name: 'Stock',
    component: () => import('../views/StockPage.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
